package com.whj.apidriver.controller;

import com.whj.internalcommon.dto.ResponseResult;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Auther: wanghaijun
 * @Date: 2023/1/12 - 01 - 12 - 13:46 
 * @Description: com.whj.apidriver.controller
 */

@RestController
public class TestController {

    @GetMapping("/test")
    public ResponseResult test(){
        return new ResponseResult();
    }

    @GetMapping("/auth")
    public ResponseResult auth(){
        return ResponseResult.success("auth");
    }

    @GetMapping("/noAuth")
    public ResponseResult noAuth(){
        return ResponseResult.success("noAuth");
    }
}
